package com.turman.course.ui

import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.turman.course.ApiHelper
import com.turman.course.ApiService
import com.turman.course.RetrofitHelper

/**
 *    author : kpa
 *    e-mail : billkp@yeah.net
 */
//class ViewModelFactory : ViewModelProvider.Factory {
//    override fun <T : ViewModel?> create(modelClass: Class<T>): T {
//        if (modelClass.isAssignableFrom(MainViewModel::class.java)) {
//            return MainViewModel(ApiHelper(RetrofitHelper.createService(ApiService::class.java))) as T
//        }
//        throw IllegalArgumentException("Unknown class name")
//    }
//}